//
//  FFPlistManager.m
//  FFSurveillance
//
//  Created by roro_latrobe on 16/10/28.
//  Copyright © 2016年 cn.wanda. All rights reserved.
//

#import "FFPlistManager.h"
#import "TBJSONModel.h"

@implementation FFPlistManager

- (FFSDCDataModel *)readPlist:(NSString *)plistFileName {
    NSString *plistPath = [[NSBundle mainBundle] pathForResource:plistFileName ofType:@"plist"];
    NSDictionary *dictionary = [[NSDictionary alloc] initWithContentsOfFile:plistPath];
    FFSDCDataModel *sdcModel = [FFSDCDataModel modelWithJSONDictionary:dictionary];
    return sdcModel;
}

- (NSDictionary *)readDataFromPlist:(NSString *)plistFileName {
    NSString *plistPath = [[NSBundle mainBundle] pathForResource:plistFileName ofType:@"plist"];
    NSDictionary *dictionary = [[NSDictionary alloc] initWithContentsOfFile:plistPath];
    return dictionary;
}

@end
